//
//  YuanXinTrackDataManager.h
//  YuanXinTrack
//
//  Created by GJS on 2018/5/10.
//  Copyright © 2018年 GJS. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YuanXinTrackModel.h"

@interface YuanXinTrackDataManager : NSObject

@property (nonatomic, copy) NSString *baseAPI;
@property (nonatomic, copy) NSString *appID;
@property (nonatomic, copy) NSString *currentUserID;
@property (nonatomic, assign) NSInteger numbersBeginUpload; // 行为日志“满5条上传”

+ (instancetype)sharedManager;

- (BOOL)recordTrackLog:(YuanXinTrackModel *)model;
- (BOOL)recordLoginLog:(YuanXinTrackModel *)model;
- (BOOL)recordAnyTrackLog:(YuanXinTrackModel *)model;

// 获取存储目录
- (NSString *)getStorageDir;
// 将缓存数据存到沙盒里
- (void)storeCachedLog;
// 上传日志
- (void)uploadUserLog;

@end
